package com.dht.xiao.jianye.bean;

import com.dht.xiao.jianye.R;

import java.io.Serializable;

public class HardwareDebugDropBean implements Serializable{
    private Integer[] Images = { R.drawable.com_home_ic_plastic,R.drawable.home_ic_clothes, R.drawable.com_home_ic_paper, R.drawable.com_home_ic_metal,
            R.drawable.com_home_ic_plastic};
    public int image;
    public String name;
    /**
     * 这个箱子对应类型，跟硬件对应,就是代表目前的，
     0:主箱
     1:纺织
     2:纸类
     3:金属
     4:塑料
     * */
    public int box;

    public byte[] boxState;
    public boolean check;

    public HardwareDebugDropBean(String name, int box, byte[] boxState,boolean check) {
        getimage(box);
        this.name = name;
        this.box = box;
        this.boxState = boxState;
        this.check = check;
    }

    private void  getimage(int box){
        if (box >= Images.length) {
            image = Images[0];

        }else {
            image = Images[box];
        }
    }
    public byte[] getBoxState() {
        return boxState;
    }

    public void setBoxState(byte[] boxState) {
        this.boxState = boxState;
    }

}
